<template>
    <input v-model="content" onchange="handleChange"/>
</template>

<script>
export default {
  name: 'Child',
  data() {
    return {
      content: ''
    }
  },
  methods: {
    handleChange() {
      this.$parent.message = this.content
    }
  }
}
</script>

<style scoped>

</style>
